From c9b4322236ababa73be935fdb745e90d90bc99e7 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 5 Feb 2001 10:16:14 +0000 Subject: [PATCH] (next-line): Goto end-of-line before inserting a newline. --- lisp/simple.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index 9078e6aa21e..d04a3b0091e 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -2408,7 +2408,8 @@ and more reliable (no dependence on goal column, etc.)." (if (save-excursion (end-of-line) (eobp)) ;; When adding a newline, don't expand an abbrev. (let ((abbrev-mode nil)) - (newline 1)) + (end-of-line) + (insert "\n")) (line-move arg)) (if (interactive-p) (condition-case nil -- 2.30.2